/*
 * Copyright 2011 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.wallet.online.jwt;

/**
 * Base class for Json Web Tokens
 * 
 * @author pying(peng ying)
 * 
 */
public abstract class JWT {

  String iss;
  String aud;
  String typ;
  Long iat;
  Long exp;


  /**
   * Getter for issuer
   * 
   * @return issuer
   */
  public String getIssuer() {
    return iss;
  }
  
  /**
   * Setter for issuer
   * 
   * @param iss Issuer
   */
  public void setIssuer(String iss){
    this.iss = iss;
  }

  /**
   * Getter for issued at time
   * 
   * @return issued at time
   */
  public Long getIat() {
    return iat;
  }

  /**
   * Setter for issued at time
   * 
   * @param iat
   *          issued at time
   */
  public void setIat(Long iat) {
    this.iat = iat;
  }

  /**
   * Getter for expiration time
   * 
   * @return expiration time
   */
  public Long getExp() {
    return exp;
  }

  /**
   * Setter for expiration time
   * 
   * @param exp
   *          time for expiration of purchase
   */
  public void setExp(Long exp) {
    this.exp = exp;
  }

  /**
   * Getter for type
   * 
   * @return JWT type
   */
  public String getType() {
    return typ;
  }

  /**
   * Setter for type
   * 
   * @param typ
   *          type of JWT notification
   */
  public void setType(String typ) {
    this.typ = typ;
  }

  /**
   * Getter for audience
   * 
   * @return JWT audience
   */
  public String getAudience() {
    return aud;
  }

  /**
   * Setter for audience
   * 
   * @param aud
   *          JWT audience
   */
  public void setAudience(String aud) {
    this.aud = aud;
  }

  
}
